package com.triones.yjj.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.common.core.page.TableDataInfo;
import com.triones.yjj.entity.vo.WxInviteRecordListVO;
import com.triones.yjj.mapper.ShareRecordMapper;
import com.triones.yjj.service.ShareRecordService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * 分享相关 service 业务实现
 *
 * @Author: triones
 */
@Service
@RequiredArgsConstructor
public class ShareRecordServiceImpl implements ShareRecordService {

    private final ShareRecordMapper shareRecordMapper;

    /**
     * 查询分享邀请列表
     * @param activityId
     * @param pageQuery
     * @return
     */
    public TableDataInfo<WxInviteRecordListVO> shareInvitePageList(Long activityId,Long userId,Long memberId, PageQuery pageQuery) {
        Page<WxInviteRecordListVO> result = shareRecordMapper.shareInvitePageList(pageQuery.build(), userId,activityId,memberId);
        return TableDataInfo.build(result);
    }



}
